package networking.messages.weaponMessages;

import com.jme.math.Vector3f;

import networking.messages.SimpleMessage;

public class WeaponFireRemoveMessage extends SimpleMessage {
	
	private int weaponFireID, hunterIndex;
	private float speed, dirX, dirY, dirZ, locX, locY, locZ;
	
	public WeaponFireRemoveMessage() {
		super();
	}
	
	public WeaponFireRemoveMessage(int weaponFireID, Vector3f loc) {
		this(weaponFireID, -1, 0f, null, loc);
	}
	
	public WeaponFireRemoveMessage(int weaponFireID, int hunterIndex, float speed, Vector3f dir, Vector3f loc) {
		this();
		this.weaponFireID = weaponFireID;
		this.hunterIndex = hunterIndex;
		
		locX = loc.x;
		locY = loc.y;
		locZ = loc.z;
		
		if(dir != null) {
			this.speed = speed;
			dirX = dir.x;
			dirY = dir.y;
			dirZ = dir.z;
		}
	}
	
	public int getWeaponFireID() { return weaponFireID; }
	
	public int getHunterID() { return hunterIndex; }
	
	public float getSpeed() { return speed; }
	
	public float getDirX() { return dirX; }
	
	public float getDirY() { return dirY; }
	
	public float getDirZ() { return dirZ; }
	
	public Vector3f getDir() { return new Vector3f(dirX, dirY, dirZ); }
	
	public float getLocX() { return locX; }
	
	public float getLocY() { return locY; }
	
	public float getLocZ() { return locZ; }
	
	public Vector3f getLoc() { return new Vector3f(locX, locY, locZ); }
}